<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    protected $table = 'category';
    protected $guarded = [];

    public function getType($index)
    {
        $typeArr = [
            '频道栏目',
            '内容栏目'
        ];
        return $typeArr[$index];
    }
}
